package com.lanbu.system.domain.mongo;

import lombok.Data;
import org.bson.types.ObjectId;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.Date;

@Document(collection = "openapis")
@Data
public class MongoOpenApis {
    private ObjectId _id;
    private ObjectId teamId;
    private ObjectId tmbId;
    private String apiKey;
    private String appId;
    private String name;
    private Integer usagePoints;
    private Limit limit;
    private Date createTime;

    @Data
    public static class Limit {
        private Integer maxUsagePoints;
    }
}
